import request from "./request"

export function getList(currentPage,pageSize){
  return request({
    url:"/notice/find_on_condition",
    method:"get",
    params:{
      currentPage,
      pageSize
    }
  })
}

export function create(noticeForm){
  return request({
    url:"/notice/create",
    method:"post",
    data:noticeForm
  })
}

export function deleteById(noticeId){
  return request({
    url:'/notice/delete_by_id',
    method:"post",
    data:{
      id:noticeId
    }
  })
}

export function update(noticeForm){
  return request({
    url:"/notice/update",
    method:"post",
    data:noticeForm
  })
}